package com.hui.blog_server.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hui.blog_server.entity.LanguageAtts;
import com.hui.blog_server.mapper.LanguageAttsMapper;
import com.hui.blog_server.service.LanguageAttsService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 彩色的小灰
 */
@Service
public class LanguageAttsServiceImpl extends ServiceImpl<LanguageAttsMapper,LanguageAtts> implements LanguageAttsService {
    @Override
    public List<LanguageAtts> getLanguageAtt(Integer id) {
        QueryWrapper<LanguageAtts> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("language_id", id);
        return baseMapper.selectList(queryWrapper);
    }
}
